package com.htudata.user.dao;

import com.alibaba.fastjson.JSONArray;
import com.htudata.user.mapper.UserMapper;
import com.htudata.user.pojo.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserDao {
  @Autowired
  private UserMapper userMapper;
  
  public User selectUserByUserId(long userId) {
    return this.userMapper.selectUserByUserId(userId);
  }
  
  public JSONArray selectUserIdsByRoleType(long roleType) {
    return this.userMapper.selectUserIdsByRoleType(roleType);
  }
}
